tag @a[tag=!fisland_permission_island_guest,tag=!fisland_permission_island_owner] add fisland_permission_island_guest
execute as @a[predicate=fisland:if_entity/in_island,tag=fisland_permission_island_guest] at @s positioned ~-150 58 ~-150 if score @e[tag=fisland_island,limit=1,sort=nearest,dx=300,dy=2,dz=300] fisland_is_id = @s fisland_is_id run function fisland:res/owner
execute as @a[predicate=fisland:if_entity/in_island,tag=fisland_permission_island_owner] at @s positioned ~-150 58 ~-150 unless score @e[tag=fisland_island,limit=1,sort=nearest,dx=300,dy=2,dz=300] fisland_is_id = @s fisland_is_id run function fisland:res/guest
execute as @a[predicate=fisland:if_entity/in_island,tag=fisland_permission_island_owner] at @s positioned ~-150 58 ~-150 unless entity @e[tag=fisland_island,limit=1,sort=nearest,dx=300,dy=2,dz=300] run function fisland:res/guest